package com.mybatis.domain;

import java.io.Serializable;
import java.util.StringJoiner;

public class Comment implements Serializable {
    private int blogId;
    private String userName;
    private String body;

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Comment.class.getSimpleName() + "[", "]")
                .add("blogId=" + blogId)
                .add("userName=" + userName)
                .add("body='" + body + "'")
                .toString();
    }
}
